package com.huanke.iot.base.dao.device.scene;

import com.huanke.iot.base.dao.BaseMapper;
import com.huanke.iot.base.po.device.scene.DeviceScenePo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceSceneMapper extends BaseMapper<DeviceScenePo> {
    List<DeviceScenePo> findByDeviceId(Integer hostDeviceId);

    Boolean deleteByDeviceId(Integer integer);

    DeviceScenePo selectByName(@Param("hostDeviceId") Integer hostDeviceId, @Param("sceneName") String sceneName);

    void deleteByDeviceIdAndName(@Param("deviceId") Integer hostDeviceId, @Param("nameList") List<String> sceneNameList);
}
